package com.yc.dao;

import com.yc.model.Dishesinfo;
import com.yc.model.DishesinfoExample;
import com.yc.model.Userinfo;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DishesinfoMapper {
    int deleteByExample(DishesinfoExample example);

    int deleteByPrimaryKey(Integer dishesid);

    int insert(Dishesinfo record);

    int insertSelective(Dishesinfo record);

    List<Dishesinfo> selectByExample(DishesinfoExample example);

    Dishesinfo selectByPrimaryKey(Integer dishesid);

    int updateByExampleSelective(@Param("record") Dishesinfo record, @Param("example") DishesinfoExample example);

    int updateByExample(@Param("record") Dishesinfo record, @Param("example") DishesinfoExample example);

    int updateByPrimaryKeySelective(Dishesinfo record);

    int updateByPrimaryKey(Dishesinfo record);
    //添加菜
    int addCaidan(Dishesinfo record);
    
  //显示菜单的方法
  	List<Dishesinfo> selectByAllShucai();
  	
  	//修改菜单
  	void modifyDishes( Dishesinfo record);
  	//查找
  	Dishesinfo selectByIdShucai(Integer id);
}